@import "../globals.scss";

ion-toast {
    --color: var(--ion-text-color-step-950);
    --button-color: var(--primary);
    --background: var(--ion-background-color-step-800);

    @include media-breakpoint-down(sm) {
        &::part(container) {
            flex-direction: column;
        }
    }

    @each $color-name, $unused in $colors {
        &.core-#{$color-name}-toast {
            --background: var(--ion-color-#{$color-name}-tint);
            --color: var(--ion-color-#{$color-name}-shade);
            --button-color: var(--ion-color-#{$color-name}-shade);
        }
    }
}
